package org.nf.web.servlet;

import jakarta.servlet.ServletException;

import java.io.IOException;

/**
 * 抽象的视图对象
 *
 * @author zhu
 * @date 2024-05-20
 */
public interface View {
    /**
     * 抽象的渲染方法
     *
     * @param servletApi 请求和响应对象
     * @throws ServletException
     * @throws IOException
     */
    void render(ServletApi servletApi)throws ServletException, IOException;
}
